const a = async function (
  _,
  {  me, transfer },
  { dc: { close, open, update } }
) {
  const ret = await new Promise((resolve) => {
    const inner = {
      onCancel: (_, { memory }) => {
        delete memory.modal;
      },
      onOk: () => {
        close();
      },
      afterClose: async ({ memory }, { xe }) => {
        const _ret = xe.get(memory, "modal", false);
        delete memory.modal;
        resolve(_ret);
      },
    };
    const layout = { id: "1785244411592970241" };
    const modal = {
      title: "选择一体化项目",
      width: "60vw",
      height: 600,
      minHeight: 600,
      defaultFullscreen: false,
      destroyOnClose: false,
      open: true,
    };
    open({ inner, layout, modal, transfer });
  });
  console.log("modal ret: ", ret, me);
  if (!ret) return;
  update({ path: me, value: ret });
};
